import request from "@/utils/request";

export const coreList = (query) => {
  return request({
    url: "/ds/core/list",
    method: "get",
    params: query,
  });
};
// 运营中心导出
export const coreExport = (query) => {
  return request({
    url: "/ds/core/export",
    method: "get",
    params: query,
  });
};

export const coreQuery = (query) => {
  return request({
    url: `/ds/core/${query.id}`,
    method: "get",
  });
};

export const coreAdd = (query) => {
  return request({
    url: "/ds/core/add",
    method: "get",
    params: query,
  });
};

export const coreEdit = (query) => {
  return request({
    url: "/ds/core/edit",
    method: "get",
    params: query,
  });
};

/**
 * 查询运营中心申请提现明细
 * @param {*} query
 * @returns
 */
export const achievementRecordList = (query) => {
  return request({
    url: "/ds/achievementRecord/list",
    method: "get",
    params: query,
  });
};

export const reviewSecondWithdrawal = (query) => {
  return request({
    url: "/ds/core/reviewSecondWithdrawal",
    method: "get",
    params: query,
  });
};

/**
 * 统计运营中心数量
 * @param {*} query
 * @returns
 */
export const countNumber = (query) => {
  return request({
    url: "/ds/core/getQuantity",
    method: "get",
    params: query,
  });
};

/**
 * 导出运营中心变动记录
 * @param {*} query
 * @returns
 */
export const exportAchievement = (query) => {
  return request({
    url: "/ds/achievementRecord/export",
    method: "get",
    params: query,
  });
};
